<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script src="./vue.js"></script>
    <script>
        Vue.component('myLi',{
            template:`
                <li>
                    预留的第一个坑
                    <slot name='two'></slot>
                    预留的第二个坑
                    <slot name='three'></slot>
                    </li>
            `
        });
        var App={
            template:`
            <div>
                <ul>
                        <myLi>
                            <h5 slot='two'>网页Vue</h5>
                            <h3 slot='three'>我是Vue</h3>
                            </myLi>
                          </ul>
                </div>            `
        }
        new Vue({
            el:"#app",
            components:{
                App
            },
            template:'<App/>'
        })
    </script>
</body>
</html>